<?php
// +----------------------------------------------------------------------
// | NewThink [ Think More,Think Better! ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2018 http://www.newthink.cc All rights reserved.
// +----------------------------------------------------------------------
// | 版权所有：山西创泰网络科技有限公司
// +----------------------------------------------------------------------
// | Author: 杨红伟   QQ:403236160  Date:2017-11-16 Time:8:12
// +----------------------------------------------------------------------

class Demo{

    private $name;

    public function __construct($name){
        $this->name = $name;
    }

    function sayHello(){
        print "Hello $this->name!";
    }
}